(function($){
    
    /**
     * Counts the no. of prop and methods.
     *  @overload 1 - counts all
     *  @param arg1 - json to count.
     */
    $.count = function(arg1){
        
        var x=0;
        
        $.each(arg1,function(key,val){
            
            x++;
            
        })
        
        return x;
    }
    
})(jQuery)